package com.pand.model.city;

import com.pand.model.BaseObject;

import javax.persistence.*;


/**
 * 
 * @ClassName: CityArea 
 * @Description: 城市与区域关系表
 *
 */
@Entity
@Table(name = "RES_CITY_AREA")
@SequenceGenerator(name="SeqResCityArea", sequenceName="SEQ_res_city_area",allocationSize=1)
public class CityArea extends BaseObject {
	
	/**
	 * 添加类成员变量的功能描述
	 */
	private static final long serialVersionUID = 1L;
	
	/**
	 * 主键
	 */
	private Long id;
	
	/**
	 * 城市ID
	 */
	private Long cityId;
	
	/**
	 * 区域ID
	 */
	private Long areaId;
	
	@Id
	@GeneratedValue(generator = "SeqResCityArea")
	@Column(name = "ID")
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	@Column(name="city_id")
	public Long getCityId() {
		return cityId;
	}
	public void setCityId(Long cityId) {
		this.cityId = cityId;
	}
	@Column(name="area_id")
	public Long getAreaId() {
		return areaId;
	}
	public void setAreaId(Long areaId) {
		this.areaId = areaId;
	}
	
	
}
